import { createRouter, createWebHashHistory } from 'vue-router';
import Login from '../views/Login.vue';
import Regist from '../views/Regist.vue';
import ShowSchedule from '../views/ShowSchedule.vue';

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/regist',
    name: 'Regist',
    component: Regist
  },
  {
    path: '/show-schedule',
    name: 'ShowSchedule',
    component: ShowSchedule
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
